<!DOCTYPE html>
<!-- 测试专用 -->
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button id="btn">复制</button>
    <script type="importmap">
      {
        "imports": {
          "clipboard": "../utils/tools/clipboard.js"
        }
      }
    </script>
    <script type="module">
      import clipboard from "clipboard";
      window.onload = function () {
        document.getElementById("btn").addEventListener(
          "click",
          () => {
            console.log(213123123);
            console.log(clipboard("nishi ge sdfhsdfhdskf"));
          },
          false
        );
      };
    </script>
  </body>
</html>
